package com.tangyuan.decoration;

/**
 * @Author tangyuan
 * @Description: 调料：红豆
 * @Data 2018/4/6
 */
public class Ormosia extends CondimentDecorator {

    private Beverage beverage;

    public Ormosia(Beverage beverage){
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + " ,Ormosia ";
    }

    @Override
    public double cost() {
        return beverage.cost() + 2;
    }
}
